Skip to content

Conversation

Leguark
Copy link
Member

@Leguark Leguark commented Sep 25, 2025

Description

Added support for name_id_map parameter in add_orientations function to maintain consistent ID mapping between surface points and orientations. Updated the Hecho example to use this parameter and fixed tuple formatting in section_dict. Also enabled validation during serialization in the compute_model call.

Relates to #validation-and-serialization-improvements

Checklist

  • My code uses type hinting for function and method arguments and return values.
  • I have created tests which cover my code.
  • The test code either 1. demonstrates at least one valuable use case (e.g. integration tests)
    or 2. verifies that outputs are as expected for given inputs (e.g. unit tests).
  • New tests pass locally with my changes.

@Leguark Leguark changed the title [ENH] Add name_id_map support in orientation data manipulation [ENH] Add name_id_map parameter to add_orientations and enable serialization validation Sep 25, 2025
@Leguark Leguark marked this pull request as ready for review September 25, 2025 12:19
@graphite-app graphite-app bot added the gempy 3 Will come with the next major update label Sep 25, 2025
Copy link

graphite-app bot commented Sep 25, 2025

Graphite Automations

"Add gempy label" took an action on this PR • (09/25/25)

1 label was added to this PR based on Miguel de la Varga's automation.

@Leguark Leguark force-pushed the changes_for_server_I branch from 0d7c62b to b194a5e Compare September 29, 2025 14:13
@Leguark Leguark force-pushed the serialize_hecho branch 2 times, most recently from 6348004 to 45ce60e Compare September 30, 2025 06:43
@Leguark Leguark force-pushed the changes_for_server_I branch from b194a5e to 0554b52 Compare September 30, 2025 06:43
Copy link
Member Author

Leguark commented Sep 30, 2025

Merge activity

@Leguark Leguark force-pushed the changes_for_server_I branch 2 times, most recently from 2dea909 to e3cd247 Compare September 30, 2025 08:16
@Leguark Leguark changed the base branch from changes_for_server_I to graphite-base/1060 September 30, 2025 08:37
Integrated optional `name_id_map` parameter to the `add_orientation` method for mapping orientation names to IDs. Updated Hecho example with serialization validation and added save/load functionality for models.
@graphite-app graphite-app bot changed the base branch from graphite-base/1060 to main September 30, 2025 08:38
…ncing validation

Removed redundant save/load and serialization validation in the Hecho example. Adjusted section grid to ensure consistent tuple formatting and enabled `validate_serialization` in model computation.
@Leguark Leguark merged commit 4a76201 into main Sep 30, 2025
2 checks passed
@Leguark Leguark deleted the serialize_hecho branch September 30, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gempy 3 Will come with the next major update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant